package com.sugar.psych.assessment.module.business.other.tencent.mini.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Y.sugar
 * @since 2024/8/8 15:35
 */
@Data
public class WeChatLoginReqVO implements Serializable {

    @Schema(description = "微信openId")
    @NotEmpty(message = "微信openId不能为空")
    private String openId;

    @Schema(description = "用户微信头像", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "微信头像不能为空")
    private MultipartFile file;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "手机号")
    private String mobile;
}
